#ifndef ACCEUIL_H
#define ACCEUIL_H

#include <QMainWindow>
#include "nouvellenotedialog.h"
#include <qsettings.h>
#include <qlabel.h>
#include <qstring.h>
#include <qfileinfo.h>
#include <mainwindow.h>
namespace Ui {
class Acceuil;
}

class Acceuil : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit Acceuil(QWidget *parent = 0);
    ~Acceuil();
    
private slots:

    // File
    void newNote();
    void open();
    void save();
    void saveAs();
    void exportAsPdf();
    void print();

    // Edit
    void copy();
    void paste();
    void cut();
    void undo();

    // Help
    void help();
    void about();
    // Others
    void openFromHistory(const QString & filename);
private:
    // enum type
    enum { MaxRecentFiles = 10 };

    // private function
    void createActions();
    void createToolbars();
    void createWelcomeGrid();
    void createRecentFileList();
    void setCurrentFile(const QString &fileName);
    void updateRecentFileList();
    QString strippedName(const QString &fullFileName);

    // private members
    Ui::Acceuil *ui;
    NouvelleNoteDialog *dialog_new;
    MainWindow *mainWindow;
    QToolBar *fileToolBar;
    QString curFile;
    QLabel *recentFileList[MaxRecentFiles];
    QLabel *testLabel;
//    QAction *newAct;



};

#endif // ACCEUIL_H
